import request from '@/utils/request'
export default {
    namespaced:true,
    state(){
        return {
            Categories:[]
        }
    },
    mutations:{
        SET_PROCATEGORIES(state,payload){
            state.proCategories = payload
        }
    },
    actions:{
        async findAllproCategory({commit}){
            let res = await request.get('/productCategory/pageQuery',{
                params:{
                    page:1,
                    pageSize:1000
                }
            })
            commit('SET_PROCATEGORIES',res.data.list);
        }
    }
}